import Vue from 'vue'
import App from './App'

import { myRequest } from './util/api.js'
Vue.config.productionTip = false
Vue.prototype.$myRequest = myRequest
App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()


const proxyObj = {}
proxyObj['/'] = {
  target: 'http://localhost:8080',
  changeOrigin: true,
  pathRewrite: {
    '^/': ''
  }
}
module.exports = {
  devServer: {
    host: 'localhost',
    port: 8080,
    proxy: proxyObj
  }
}
